package com.gem.service.impl;

import com.gem.entity.*;
import com.gem.enums.ClientMessageType;
import com.gem.enums.GameRoundStageType;
import com.gem.enums.GemType;
import com.gem.factory.card.CardBaseFactory;
import com.gem.factory.game.GameFactory;
import com.gem.factory.room.RoomFactory;
import com.gem.factory.user.UserFactory;
import com.gem.netty.entity.CardInfo;
import com.gem.netty.entity.CurrentUser;
import com.gem.netty.session.GroupSessionFactory;
import com.gem.service.GameService;
import com.gem.utils.R;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;
import org.springframework.stereotype.Service;

import java.util.*;
import java.util.stream.Collectors;

/**
 * Author: Xhy
 * CreateTime: 2022-09-21 17:51
 */
@Service
public class GameServiceImpl implements GameService {




    @Override
    public R get(String roomId) {
        return R.ok().data("data",GameFactory.get(roomId));
    }





}
